body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.login-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 80%;
    max-width: 400px;
}

.logo {
    display: block;
    margin: 0 auto 20px auto;
    max-width: 25%;
}

h1 {
    text-align: center;
}

h2 {
    text-align: center;
}

h3 {
    text-align: center;
}

h4 {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 5px;
}

hr {
    border: none; /* Remove default styling */
    border-top: 2px solid #000;
    margin: 5px 0; /* Add spacing around the horizontal rule */
    width: 100%; /* Ensure it stretches across the full width */
}

ul {
    list-style-type: none; /* Remove bullets */
    padding: 0;
    text-align: left;
}

li {
    margin: 1px 0;
}
/* ================================ Table ====++++++++++++++++++++++++++++++++++++== */

table {
    width: 100%;
    border: 1px solid #ccc;
    border-collapse: collapse;
    border: 0px solid #ccc;
}

.table-bordered {
    width: 100%;
    border: 2px solid #ccc;
}

tr {
    border: 0px solid #ccc;
}

td {
    border: 0px solid #ccc;
    font-size: 14px;
    padding: 4px 8px;

}

.td-bordered {
    border: 2px solid #ccc;
    font-size: 14px;
    padding: 4px 8px;

}

th {
    position: sticky;
    border: 1px solid #ccc;
    background-color: #f2f2f2;
    font-size: 14px;
}



tfoot {
    border: 1px solid #ccc;
    background-color: #f2f2f2;
    font-size: 14px;
    text-align: left;
}

.login-btn {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-btn:hover {
    background-color: #0056b3;
}

.other-options {
    margin-top: 20px;
    display: flex;
    justify-content: space-between;
}

.new-user-btn, .forgot-password-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    transition: color 0.3s;
}

.new-user-btn:hover, .forgot-password-btn:hover {
    color: #0056b3;
}

.flash-message {
    background-color: #ccc;
    color: #333;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid;
    border-radius: 4px;
    text-align: center;
}

.flash-error {
    background-color: #F44336; /* Red background color */
    color: #000; /* White text color */
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #000;
    border-radius: 4px;
    text-align: center;
}

.flash-warning {
    background-color: #FFC107; /* Yellow background color for warning messages */
    color: #333; /* Text color for warning messages (black) */
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #000; /* Black border */
    border-radius: 4px;
    text-align: center;
}

.flash-success {
    background-color: #4CAF50; /* Green background color for success messages */
    color: #000; /* Text color for success messages (black) */
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #000; /* Black border */
    border-radius: 4px;
    text-align: center;
}

.dashboard-btn {
    width: 100%;
    padding: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;  /* Adding gap between buttons */
    transition: background-color 0.3s;
}

.dashboard-btn:hover {
    background-color: #0056b3;
}

.logout-btn {
    width: 100%;
    padding: 10px;
    background-color: #ccc;
    color: #333;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 15px;
    transition: background-color 0.3s;
}

.logout-btn:hover {
    background-color: #aaa;
}

.clock-info {
    margin: 10px 0;
    font-weight: bold;
}

.user-info {
    font-size: 14px;
    font-weight: bold;
    margin: 10px 0;
    color: #333;
}

.dashboard-btn:disabled {
    background-color: #ccc;
}

.item-type-btn {
    width: auto;
    padding: 8px 12px;
    margin: 5px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.item-type-btn:hover {
    background-color: #0056b3;
}

.brand-button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.condition-button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.type-button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.button-container {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.small-button {
    background-color: #ccc;  /* Gray out by default */
    color: #666;
    padding: 8px 12px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.small-button:hover {
    background-color: #0056b3;
}

.small-button.active {
    background-color: #007bff;  /* Blue color when active */
    color: #fff;
}

.brand-button {
    background-color: #ccc;  /* Gray out by default */
    color: #666;
    padding: 8px 12px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.brand-button:hover {
    background-color: #0056b3;
}

.brand-button.active {
    background-color: #007bff;  /* Blue color when active */
    color: #fff;
}

.type-button {
    background-color: #ccc;  /* Gray out by default */
    color: #666;
    padding: 8px 12px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.type-button:hover {
    background-color: #0056b3;
}

.type-button.active {
    background-color: #007bff;  /* Blue color when active */
    color: #fff;
}

.conditionDescription-button {
    background-color: #ccc;  /* Gray out by default */
    color: #666;
    padding: 8px 12px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.conditionDescription-button:hover {
    background-color: #0056b3;
}

.conditionDescription-button.active {
    background-color: #007bff;  /* Blue color when active */
    color: #fff;
}

.inventory-list {
    max-height: 500px; /* Adjust as needed */
    overflow-y: auto;
}

.item-info-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 80%;
    max-width: 400px;  /* Increased max-width */
}

.wide-info-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 80%;
    max-width: 720px;  /* Increased max-width */
}

.ultra-wide-info-container {
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    width: 80%;

    min-height: calc(100vh - 40px);  /* Adjusted for padding */
    box-sizing: border-box;
    margin: 20px auto;  /* Centers the container */
    display: flex;
    flex-direction: column;
}

.large-action-log-container {
    max-height: calc(100vh - 450px);
    overflow-y: auto;
}

.inventory-item-info {
    max-height: 400px;  /* Set a maximum height for the container */
    overflow-y: auto;  /* Enable vertical scrolling */
}

.inventory-item-info table {
    width: 100%;
}

.inventory-item-info td {
    word-wrap: break-word;
    padding: 8px;  /* Added padding for separation */
    border-bottom: 1px solid #f0f0f0;  /* Added border for separation */
}

.accessory-button {
    background-color: #ccc;  /* Gray out by default */
    color: #666;
    padding: 8px 12px;
    margin: 5px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.accessory-button.active {
    background-color: #007bff; /* A blue shade for the active state, you can change this color */
    color: white;
}

.gallery-scroll-container {
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Prevent images from wrapping to new lines */
}

.gallery-container {
    display: inline-block;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
    padding: 10px;
}

.gallery-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-image {
    max-width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.2s;
}

.gallery-image:hover {
    transform: scale(1.05); /* Increase image size on hover */
}

.textarea {
    width: 400px; /* Set the width */
    height: 60px; /* Set the height */
    overflow-y: auto; /* Enable vertical scroll if content overflows */
    resize: none
}

.filename {
    margin-top: 5px;
    font-size: 0.8rem; /* Small font size for filenames */
    color: #666; /* Dark gray color for the filenames */
    text-align: center;
}

/* ======== Style for both dropdown menu and text input ======= */
.input-style {
    background-color: #f2f2f2; /* Gray out by default */
    color: #666;
    padding: 8px 12px;
    border: 1px solid #007bff;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
    width: 100%; /* Adjust width as needed */
    box-sizing: border-box; /* Include padding and border in element's total width */
    resize: none; /* Disable textarea resizing */
    overflow-y: auto; /* Enable vertical scrollbar when content exceeds textarea height */
}

/* Hover effect */
.input-style:hover {
    background-color: #ddd; /* Lighten on hover */
}

/* Focus effect */
.input-style:focus {
    outline: none; /* Remove default focus outline */
    background-color: #fff; /* Change background color on focus */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Add box shadow on focus */
}

/* Style for dropdown options */
.input-style option {
    background-color: #f2f2f2; /* Background color for each option */
    color: #666; /* Text color for each option */
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s;
}

/* Hover effect for options */
.input-style option:hover {
    background-color: #f0f0f0; /* Light gray background on hover */
}

/* =========== Text Input =========== */

.text-input {
    width: 95%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #007bff;
    border-radius: 4px;


    background-color: #f2f2f2; /* Gray out by default */
    color: #666;

    transition: background-color 0.3s;
    width: 100%; /* Adjust width as needed */
    box-sizing: border-box; /* Include padding and border in element's total width */
}

/* Adjust height for textarea */
.text-input textarea {
    width: 100%; /* Adjust width as needed */
    height: 3em; /* Set height for 3 rows */
    resize: vertical; /* Allow vertical resizing only */
}

/* Hover effect */
.text-input:hover {
    background-color: #ddd; /* Lighten on hover */
}

/* Focus effect */
.text-input:focus {
    outline: none; /* Remove default focus outline */
    background-color: #fff; /* Change background color on focus */
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.3); /* Add box shadow on focus */
}

/* ================================ CALENDAR TABLE ================================ */
.calendar-table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed; /* Ensures uniform column width */
}

.calendar-table th{
    border: 1px solid black;
    text-align: center;
    vertical-align: middle;
    height: 30px; /* Fixed height for uniformity */
    width: 80px;
}

.calendar-table td {
    border: 1px solid black;
    text-align: center;
    vertical-align: middle;
    height: 50px; /* Fixed height for uniformity */
    font-size: 12px;
}

.calendar-table td.tall {
    border: 1px solid black;
    text-align: center;
    vertical-align: middle;
    height: 100px; /* Fixed height for uniformity */
    font-size: 12px;
}

.date-button {
    width: 100%; /* Adjust width as needed */
    height: 32px; /* Adjust height as needed */
    background-color: #ccc;
    color: black;
    padding: 0px;
    border: none;
    cursor: pointer;
    display: block; /* Makes the button fill the cell */
    margin: auto; /* Centers the button horizontally */
}

.date-button-today {
    width: 100%; /* Adjust width as needed */
    height: 32px; /* Adjust height as needed */
    background-color: #007bff;
    color: white;
    padding: 0px;
    border: none;
    cursor: pointer;
    display: block; /* Makes the button fill the cell */
    margin: auto; /* Centers the button horizontally */
}

.date-button-today:hover {
    background-color: #0056b3;
    color: white;
}

.date-button:hover {
    background-color: #0056b3;
    color: white;
}

/* ================================ action log container ================================ */

.action-log-container {
    max-height: 500px;
    overflow-y: auto;
}

/* ================================ hint icon bubble message ================================ */
.text-bubble-icon-container {
    position: relative;
    display: flex;
    cursor: pointer;
    justify-content: right;
    align-items: center;
}

.text-bubble-icon-container:hover .text-bubble {
    display: block;
}

.question-button {
    width: 20px; /* Adjust size as needed */
    height: 20px; /* Adjust size as needed */
    background-color: #007bff;
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.text-bubble {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    border: 1px solid #ccc;
    border-radius: 5px;
    padding: 10px;
    transform: translateX(-20%);
    z-index: 1;
    min-width: 200px; /* Set minimum width as needed */
    max-width: 400px; /* Set maximum width as needed */
    width: auto; /* Ensure it expands to fit content */
    white-space: pre-wrap; /* Allow wrapping and preserve newlines */
}

.text-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: #ccc transparent transparent transparent;
}


.centered-container {
    display: flex;
    justify-content: space-between; /* Distribute space evenly between items */
    align-items: center;
    text-align: center;
    width: 100%; /* Ensure the container takes up full width */
}

.centered-container > div {
    flex: 1;
    text-align: center; /* Ensure text is centered within each div */
}